package com.cms.dao.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.cms.exception.SystemDBException;
import com.cms.model.UserCoinLog;
import com.cms.model.UserCommission;

 

public interface UserCoinLogMapper { 
	 /**
	  *  添加用户帐变记录
	  * @param log
	  * @throws SystemDBException
	  */ 
	 public void addUserCoinLog(@Param("coin")UserCoinLog log)throws SystemDBException;
	 
	 
	 /**
	  * 批量添加用户帐变记录
	  * @param log
	  * @throws SystemDBException
	  */
	 public void addUserCoinLogBatch(@Param("coinLogs")List<UserCoinLog> logs) throws SystemDBException;
	 
	 /***
	  * 修改用户的帐变订单
	  * @throws SystemDBException
	  */
	 public void hanlderUserCashOrder(@Param("cashOrder")Map<String,Object>cashOrder)throws SystemDBException;
	 
	 
	 /***
	  * 修改用户的帐变订单
	  * @throws SystemDBException
	  */
	 public void hanlderUserCharge(@Param("chargeOrder")Map<String,Object>cashOrder)throws SystemDBException;
	 
	 
	 /***
	  *  删除用户充值订单
	  * @param content
	  * @throws SystemDBException
	  */
	 public void delUserRecharge(@Param("reChargeOrder")Map<String,Object>content)throws SystemDBException;
	 
	 /*
	  *  添加用户佣金记录
	  */
	 public void saveUserCommission(@Param("commission")UserCommission commission) throws SystemDBException ;
	 
	 /**
	  * 
	  * @param cashOrder
	  * @throws SystemDBException
	  */
	 public void saveUserCoinLogForDeleteComBet(@Param("comBet")Map<String,Object>cashOrder)throws SystemDBException;
}
